import api from '../utils/api';

export async function queryList(param) {
  return api.post('/puton/queryList', {
    data: JSON.stringify(param),
  });
}

export async function create(param) {
  return api.post('/puton/create', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/puton/remove', {
    data: JSON.stringify(param),
  });
}

export async function edit(param) {
  return api.post('/puton/edit', {
    data: JSON.stringify(param),
  });
}

export async function editShelfUp(param) {
  return api.post('/puton/editShelfUp', {
    data: JSON.stringify(param),
  });
}

export async function qryById(param) {
  return api.post('/puton/qryById', {
    data: JSON.stringify(param),
  });
}

export async function querAssetListByParam(param) {
  return api.post('/puton/querAssetListByParam', {
    data: JSON.stringify(param),
  });
}

export async function qryAssetById(param) {
  return api.post('/asset/qryAssetById', {
    data: JSON.stringify(param),
  });
}

